package entity;

public class Employee {
    private String name;
    private int age;
    private String post;

    private String name1;
    private int age1;
    private String post1;

    public Employee() {}
    public Employee(String name, int age, String post, String name1, int age1, String post1) {
        this.name = name;
        this.age = age;
        this.post = post;
        this.name1 = name1;
        this.age1 = age1;
        this.post1 = post1;
    }

    public void print(){
        System.out.println("大家好:我是 " + this.post+"岗位的"+this.name+",今年"+this.age+"岁。");
        System.out.println("大家好:我是 " + this.post1+"岗位的"+this.name1+",今年"+this.age1+"岁。");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getPost() {
        return post;
    }

    public void setPost(String post) {
        this.post = post;
    }

    public String getName1() {
        return name1;
    }

    public void setName1(String name1) {
        this.name1 = name1;
    }

    public int getAge1() {
        return age1;
    }

    public void setAge1(int age1) {
        this.age1 = age1;
    }

    public String getPost1() {
        return post1;
    }

    public void setPost1(String post1) {
        this.post1 = post1;
    }
}
